<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>
		</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="description" content="">
		<meta name="author" content="">
		<link href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"
		rel="stylesheet">
		<link href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css"
		rel="stylesheet">
	</head>

	<body>
		<div class="container">
			<div class="page-header">
				<h3>
					<%= link_to "Doc Markdown Online Viewer", posts_path %>
				</h3>
			</div>
			<div class="row">
				<div class="col-md-4">
					<ul class="list-group">

						<% @posts.each do |post| %>
							<li class="list-group-item">
							<span class="badge"><%= link_to 'Edit', edit_post_path(post) %> | <%= link_to 'Destroy', post, method: :delete, data: { confirm: 'Are you sure?' } %></span>
							<%= link_to post.title, post %>
							</li>
						<% end %>

						<li class="list-group-item">
						<span class="badge">2</span>
						Dapibus ac facilisis in
						</li>
						<li class="list-group-item">
						<span class="badge">1</span>
						Morbi leo risus
						</li>
					</ul>
				</div>
				<div class="col-md-8">
					<div class="panel panel-default">
						<div class="panel-heading">
							<h3 class="panel-title">
								<%= @post.title %>
							</h3>
						</div>
						<div class="panel-body">
							<div>
								<%= @post.content %>
							</div>
						</div>
					</div>
				</div>
			</div>

			<%= link_to 'New Post', new_post_path %>
		</div>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
			>
		</script>
		<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"
			>
		</script>
	</body>
</html>
